﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Speech.Synthesis;

namespace SmartVoice
{
    class VoiceSynth
    {
        public SpeechSynthesizer Synth = new SpeechSynthesizer();

        public VoiceSynth()
        {
        }

        public void speakText(string readString)
        {
            //this.Synth.SpeakAsync(readString);
            this.Synth.Speak(readString);
        }

        public void setVolume(int volume)
        {
            this.Synth.Volume = volume;
        }
        
        public void setRate(int rate)
        {
            this.Synth.Rate = rate;
        }
    }
}
